package com.sg.dto.biz.bff.common;

import com.wicket.okrbff.common.annotations.TreeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffMainNavMenusDto
 * @使用场景
 */
@Data
public class BffMainNavMenusDto implements Serializable {

    /**
     * 分组配置项ID
     */
    @ApiModelProperty("分组配置项ID")
    private String classConfItemId;

    /**
     * 配置项ID
     */
    @ApiModelProperty("配置项ID")
    private String confItemId;

    /**
     * 配置项名称
     */
    @ApiModelProperty("配置项名称")
    private String confItemName;

    /**
     * 配置项简称
     */
    @ApiModelProperty("配置项简称")
    private String shortName;

    /**
     * 配置项标识
     */
    @ApiModelProperty("配置项标识")
    private String confItemCode;

    /**
     * 商业位置 MAIN_MENUS:主菜单 IN_MAIN_MENUS:主菜单内 THROW_PLACE_IN_MAIN_MENUS:主菜单内商业位置
     */
    @ApiModelProperty("商业位置")
    private String throwPlace;

    /**
     * 配置项描述
     */
    @ApiModelProperty("配置项描述")
    private String confItemDes;

    /**
     * 扩展字段1
     */
    @ApiModelProperty("扩展字段1 ")
    private String extensionField1;

    /**
     * 扩展字段2
     */
    @ApiModelProperty("扩展字段2")
    private String extensionField2;

    /**
     * 扩展字段3
     */
    @ApiModelProperty("扩展字段3 ")
    private String extensionField3;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 选项结果ID
     */
    @TreeType("id")
    @ApiModelProperty("选项结果ID")
    private String optionResultId;

    /**
     * 选项标识
     */
    @ApiModelProperty("选项标识")
    private String confOptionCode;

    /**
     * 选项名称
     */
    @ApiModelProperty("选项名称")
    private String confOptionName;

    /**
     * 选项商业位置 MAIN_MENUS:主菜单 IN_MAIN_MENUS:主菜单内 THROW_PLACE_IN_MAIN_MENUS:主菜单内商业位置
     */
    @ApiModelProperty("选项商业位置")
    private String optionThrowPlace;

    /**
     * 选项排序
     */
    @ApiModelProperty("选项排序")
    private Long confOptionSortNum;
    /**
     * 答案结果值
     */
    @ApiModelProperty("答案结果值")
    private String endValue;
    /**
     * 菜单名称
     */
    @ApiModelProperty("菜单名称")
    private String menuName;

    /**
     * 菜单编码
     */
    @TreeType("pid")
    @ApiModelProperty("菜单编码")
    private String menuCode;

    /**
     * 菜单图标
     */
    @ApiModelProperty("菜单图标")
    private String icon;

    /**
     * 是否可见
     */
    @ApiModelProperty("是否可见")
    private String isVisible;

    /**
     * 菜单路径
     */
    @ApiModelProperty("菜单路径")
    private String path;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffMainNavMenusDto that = (BffMainNavMenusDto) o;
        return classConfItemId == that.classConfItemId && confItemId == that.confItemId && confItemName == that.confItemName && shortName == that.shortName && confItemCode == that.confItemCode && throwPlace == that.throwPlace && confItemDes == that.confItemDes && extensionField1 == that.extensionField1 && extensionField2 == that.extensionField2 && extensionField3 == that.extensionField3 && orderNumber == that.orderNumber && optionResultId == that.optionResultId && confOptionCode == that.confOptionCode && confOptionName == that.confOptionName && optionThrowPlace == that.optionThrowPlace && confOptionSortNum == that.confOptionSortNum && endValue == that.endValue && menuName == that.menuName && menuCode == that.menuCode && icon == that.icon && isVisible == that.isVisible && path == that.path;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), classConfItemId, confItemId, confItemName, shortName, confItemCode, throwPlace, confItemDes, extensionField1, extensionField2, extensionField3, orderNumber, optionResultId, confOptionCode, confOptionName, optionThrowPlace, confOptionSortNum, endValue, menuName, menuCode, icon, isVisible, path);
    }


}
   